package com.yin.myproject.collection;

import java.util.HashMap;

/**
 * Created by Eason on 2017/6/12.
 */
public class HashMapSample {

    private static Object[] elementData;
    private static final Object[] DEFAULTCAPACITY_EMPTY_ELEMENTDATA = {};
    public static void main(String[] args) {
        HashMap<String,String> map = new HashMap<>();
        map.put("abc","abc");
        map.put("abcd","abcd");
    }


    public static int hash(Object key) {
        int h;
        return (key == null) ? 0 : (h = key.hashCode()) ^ (h >>> 16);
    }
}
